//
//  SCRadioListCollectionViewCell.m
//  OurMoon
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 sc. All rights reserved.
//

#import "SCRadioListCollectionViewCell.h"
#import "NightHeader.h"
#import <UIImageView+WebCache.h>
@implementation SCRadioListCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createViews];
    }
    return self;
}
- (void)createViews
{
    _bigImageView = [[UIImageView alloc] init];
    _bigImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:_bigImageView];
    
    _titleLabel = [[UILabel alloc] init];
    _tnameLabel.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:_titleLabel];
    
    _tnameLabel = [[UILabel alloc] init];
    _tnameLabel.backgroundColor = [UIColor blackColor];
    [self.contentView addSubview:_tnameLabel];
    
    _listenImageView = [[UIImageView alloc] init];
    _listenImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:_listenImageView];
    
    _playCountLabel = [[UILabel alloc] init];
    _playCountLabel.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:_playCountLabel];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    _bigImageView.frame = CGRectMake(0, 0, 100, 100);
    [_bigImageView sd_setImageWithURL:[NSURL URLWithString:_radioModel.imgsrc]];
}

@end
